package com.fintech.third.model.moxie.fund;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.Date;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LoanRepayRecord implements Serializable{
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	// 还款日期
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @JsonProperty("repay_date")
    private Date repayDate;
    // 记账日期
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    @JsonProperty("accounting_date")
    private Date accountingDate;
    // 还款
    @JsonProperty("repay_amount")
    private Integer repayAmount;
    // 还款本金
    @JsonProperty("repay_capital")
    private Integer repayCapital;
    // 还款利息
    @JsonProperty("repay_interest")
    private Integer repayInterest;
    // 还款罚息
    @JsonProperty("repay_penalty")
    private Integer repayPenalty;

    @JsonProperty("contract_number")
    private String contractNumber;

    public Date getRepayDate() {
        return repayDate;
    }

    public void setRepayDate(Date repayDate) {
        this.repayDate = repayDate;
    }

    public Date getAccountingDate() {
        return accountingDate;
    }

    public void setAccountingDate(Date accountingDate) {
        this.accountingDate = accountingDate;
    }

    public Integer getRepayAmount() {
        return repayAmount;
    }

    public void setRepayAmount(Integer repayAmount) {
        this.repayAmount = repayAmount;
    }

    public Integer getRepayCapital() {
        return repayCapital;
    }

    public void setRepayCapital(Integer repayCapital) {
        this.repayCapital = repayCapital;
    }

    public Integer getRepayInterest() {
        return repayInterest;
    }

    public void setRepayInterest(Integer repayInterest) {
        this.repayInterest = repayInterest;
    }

    public Integer getRepayPenalty() {
        return repayPenalty;
    }

    public void setRepayPenalty(Integer repayPenalty) {
        this.repayPenalty = repayPenalty;
    }

    public String getContractNumber() {
        return contractNumber;
    }

    public void setContractNumber(String contractNumber) {
        this.contractNumber = contractNumber;
    }

    @Override
    public String toString() {
        return "LoanRepayRecord{" +
                "repayDate=" + repayDate +
                ", accountingDate=" + accountingDate +
                ", repayAmount=" + repayAmount +
                ", repayCapital=" + repayCapital +
                ", repayInterest=" + repayInterest +
                ", repayPenalty=" + repayPenalty +
                ", contractNumber='" + contractNumber + '\'' +
                '}';
    }
}
